import request from '@/utils/request'

// 查询出差申请列表
export function listEvection(query) {
  return request({
    url: '/module/evection/list',
    method: 'get',
    params: query
  })
}

// 查询出差申请详细
export function getEvection(evectionId) {
  return request({
    url: '/module/evection/' + evectionId,
    method: 'get'
  })
}

// 新增出差申请
export function addEvection(data) {
  return request({
    url: '/module/evection',
    method: 'post',
    data: data
  })
}

// 修改出差申请
export function updateEvection(data) {
  return request({
    url: '/module/evection',
    method: 'put',
    data: data
  })
}

// 删除出差申请
export function delEvection(evectionId) {
  return request({
    url: '/module/evection/' + evectionId,
    method: 'delete'
  })
}
